package com.fzn.mybatisplus.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @program: MyBatis-Plus
 * 描述：
 * @author: fzn
 * @create: 2022-03-06 14:58
 **/
@Data
@TableName("user")
public class User {
    @TableId
    private Long id;
    @TableField()
    private String name;
    @TableField()
    private Integer age;
    @TableField()
    private String email;
    @TableField()
    private Integer sex;
    /**
     * 逻辑删除
     * 1 已删除
     * 0 未删除
     */
    @TableLogic
    private Integer isDelete;
}